package app.hzvmap.com.rangecontrol.acitvity.Base;

import android.app.Dialog;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;


import org.xutils.view.annotation.Event;
import org.xutils.x;

import app.hzvmap.com.rangecontrol.App;
import app.hzvmap.com.rangecontrol.R;

public class BaseFragmentActivity extends FragmentActivity {

    protected Dialog dialog = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        dialog = new Dialog(this, R.style.progress_dialog);
        dialog.setContentView(R.layout.view_dialog_process);
        dialog.setCancelable(true);
        dialog.getWindow().setBackgroundDrawableResource(
                android.R.color.transparent);

        x.view().inject(this);
    }

    @Override
    protected void onResume() {
        super.onResume();
        App.getInstance().setTopActivity(this);
    }

//    @Event(value = R.id.btn_back,
//            type = View.OnClickListener.class)
//    private void onBack(View view) {
//        finish();
//    }
}
